package com.iot.device.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import com.iot.device.domain.PressureSensorClient;

/**
 * 压力传感器设备Mapper接口
 *
 * @author iot
 * @date 2023-06-30
 */
@Mapper
public interface PressureSensorClientMapper
{
    /**
     * 查询压力传感器设备
     *
     * @param id 压力传感器设备主键
     * @return 压力传感器设备
     */
    public PressureSensorClient selectPressureSensorClientById(Long id);

    /**
     * 查询压力传感器设备列表
     *
     * @param pressureSensorClient 压力传感器设备
     * @return 压力传感器设备集合
     */
    public List<PressureSensorClient> selectPressureSensorClientList(PressureSensorClient pressureSensorClient);

    /**
     * 新增压力传感器设备
     *
     * @param pressureSensorClient 压力传感器设备
     * @return 结果
     */
    public int insertPressureSensorClient(PressureSensorClient pressureSensorClient);

    /**
     * 修改压力传感器设备
     *
     * @param pressureSensorClient 压力传感器设备
     * @return 结果
     */
    public int updatePressureSensorClient(PressureSensorClient pressureSensorClient);

    /**
     * 删除压力传感器设备
     *
     * @param id 压力传感器设备主键
     * @return 结果
     */
    public int deletePressureSensorClientById(Long id);

    /**
     * 批量删除压力传感器设备
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePressureSensorClientByIds(Long[] ids);

    PressureSensorClient selectPressureSensorClientBySn(String sn);

    Map<String, Long> selectPressureSensorClientStatistics(Long userId);
}
